Java 6
mvn 2.0.9 or higher
Download Spring ROO and unzip in a local_folder
:
http://spring-roo-repository.springsource.org/spring-roo-1.2.5.RELEASE.zip
Define environment variables:
> set ROO_HOME=<local_ folder>/spring-roo-1.2.5.RELEASE
> set PATH=%PATH%;%ROO_HOME/bin%
> set JAVA_OPTS="-Xms512m -Xmx1024m -XX:PermSize=64m -XX:MaxPermSize=1024m"
> set MAVEN_OPTS="-Xmx512m -XX:MaxPermSize=1024m"
Run from the ROO console:
> md hello
> cd hello
> roo
roo> hint
roo> project --topLevelPackage com.foo
roo> jpa setup --provider HIBERNATE --database HYPERSONIC_IN_MEMORY
roo> entity jpa --class ~.Timer --testAutomatically
roo> field string --fieldName message --notNull
roo> hint web mvc
roo> web mvc setup
roo> web mvc all --package ~.web
roo> selenium test --controller ~.web.TimerController
roo> web gwt setup
roo> web gwt all --proxyPackage ~.client.proxy --requestPackage ~.client.request
roo> perform tests
roo> quit
Alternatively, download hello.roo and run:
> mkdir hello
> cd hello
roo> script --sile hello.roo
roo> quit
Run the tomcat application server:
> mvn tomcat:run
Test the application:
Open http://localhost:8080/tenminutes in a web browser
Open http://localhost:8080/hello in a web broswer